package inheritance;

public class Triangle extends Shape {

	int foot;
	int height;
	
	public Triangle() {
		type = "삼각";
	}
	
	double getArea() {
		return (double) foot * height / 2;
	}
	
}
